.wechat-menu {
  position: relative;
  padding: 20px;

  .hbox {
    display: table;
    table-layout: fixed;

    .inner-left {
      width: 380px;
      display: table-cell;
      vertical-align: top;
      height: 100%;
      float: none;
      border: 1px solid #dee5e7;
      border-right: none;
      position: relative;

      .menu-view-con {
        width: 309px;
        height: 506px;
        position: relative;
        margin: 50px auto;
        border-radius: 10px;
        overflow: hidden;

        .menu-view {
          height: 100%;
          background-color: #f8f8f8;

          .menu-view-title {
            height: 40px;
            line-height: 40px;
            text-align: center;
            background: #323232;
            color: #fff;
          }

          .menu-view-body {
            position: absolute;
            top: 40px;
            left: 1px;
            right: 1px;
            bottom: 50px;
            background: #f2f2f2;
            overflow: auto;
            border-bottom: 1px solid #dee5e7;
            border-top: 1px solid #dee5e7;
          }

          .menu-view-footer {
            position: absolute;
            height: 50px;
            bottom: 0;
            left: 0;
            right: 0;
            border-top: 1px solid #dee5e7;
            background-color: #fff;

            .menu-view-footer-left {
              position: absolute;
              width: 40px;
              top: 0;
              bottom: 0;
              left: 0;
              border-right: 1px solid #dee5e7;
              background: url(/static/admin/images/wechat/keyboard.png);
              background-repeat: no-repeat;
              background-position: center;
            }

            .menu-view-footer-right {
              position: absolute;
              left: 40px;
              right: 0;
              top: 0;
              bottom: 0;
              font-size: 13px;
              display: flex;
              flex-direction: row;

              .choose-menu {
                border: 1px solid #09c !important;
              }

              .footer-parent-item {
                flex: 1;
                text-align: center;
                line-height: 50px;
                border-right: 1px solid #dee5e7;
                position: relative;
                cursor: pointer;
                width: 33%;

                .menu-child {
                  position: absolute;
                  bottom: 70px;
                  left: 4px;
                  right: 4px;

                  .menu-child-item {
                    width: 100%;
                    height: 40px;
                    line-height: 40px;
                    text-align: center;
                    border: 1px solid #dee5e7;
                    border-top: none;
                    background-color: #ffffff;
                  }

                  .menu-child-item:nth-of-type(1) {
                    border-top: 1px solid #dee5e7;
                    border-top-left-radius: 6px;
                    border-top-right-radius: 6px;
                  }

                  .menu-child-item:nth-last-child(2) {
                    border-bottom-left-radius: 6px;
                    border-bottom-right-radius: 6px;
                  }

                  .arrow {
                    width: 0;
                    height: 0;
                    border-left: 8px solid transparent;
                    border-right: 8px solid transparent;
                    border-top: 8px solid #ffffff;
                    position: absolute;
                    bottom: -7px;
                    left: 50%;
                    margin-left: -8px;
                    z-index: 2;
                  }
                }
              }

              .add {
                color: #09c;
              }
            }
          }
        }
      }
    }

    .inner-right {
      position: relative;
      background: #fff;
      display: table-cell;
      vertical-align: top;
      max-width: 718px;
      min-width: 518px;
      height: 100%;
      border: 1px solid #dee5e7;
      color: #58666e;

      .edit-before {
        position: absolute;
        top: 0;
        right: 0;
        left: 0;
        bottom: 0;
        background-color: #ffffff;
        text-align: center;

        h5 {
          line-height: 400px;
        }
      }

      .edit-after {
        padding: 20px;

        .form-group {
          padding-top: 40px;
        }

        .content {
          width: 100%;
          border: 1px solid #dee5e7;
          padding: 0;
          min-height: 400px;

          .send-message {
            .content-tab {
              height: 40px;
              border-bottom: 1px solid #d2d9db;

              .tab-item {
                line-height: 40px;
                text-align: center;
                cursor: pointer;
              }

              .active {
                background: #09c;
                color: #ffffff;
              }
            }

            .content-box {
              padding: 20px;

              .choose {
                display: block;
                width: 324px;
                height: 254px;
                text-align: center;
                color: #3c8dbc;
                position: relative;

                .add-icon {
                  position: absolute;
                  left: 50%;
                  top: 50%;
                  margin-top: -24px;
                  margin-left: -50px;
                }
              }

              .choose:hover {
                opacity: 0.8;
                border: 1px dashed #000;
              }
            }
          }

          .jump-url {
            padding: 20px;
          }
        }
      }
    }
  }

  .cm-edit-footer {
    padding: 40px 0;
  }

  .content-dialog {
    top: 100px;
    width: 50%;
    height: 70%;

    .content-body {
      height: 58vh;
      background: #f2f2f2;

      .scrollbar {
        overflow: hidden;
        overflow-y: scroll;
        height: 510px;

        .scrollbar-item {
          display: flex;
          flex-wrap: wrap;
          padding: 10px;

          .mask-layer {
            width: 100%;
            height: 100%;
            position: absolute;
            top: 0;
            background: rgba(0, 0, 0, .5);
            display: none;
          }

          .maskBlock {
            display: block !important;
          }
        }

        .panel {
          width: 260px;
          position: relative;
          border: 0;
          margin: 10px 10px;
          box-shadow: none;
          background-color: #f2f2f2;

          .shade {
            position: relative;
          }

          .panel-image {
            width: 100%;
            height: 200px;
            border-radius: 5px;
            border: 0;

            .panel-image-item {
              width: 260px;
              height: 200px;
              border-radius: 5px;
            }
          }

          .panel-title {
            width: 100%;
            height: 25px;
            background: rgba(0, 0, 0, .5);
            position: absolute;
            top: 175px;
            display: inline-block;
            text-align: center;
            color: #fff;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
          }

          .panel-weui {
            background: #fff;

            .weui-item {
              height: 90px;
              padding: 15px;
              display: flex;
              border-top: 1px solid #ccc;

              .weui-title {
                width: 170px;

                .title {
                  text-align: center;
                  line-height: 40px;
                  overflow: hidden;
                  text-overflow: ellipsis;
                  white-space: nowrap;
                }
              }

              .weui-image {
                width: 60px;
                height: 60px;

                image {
                  width: 60px;
                  height: 60px;
                }
              }
            }
          }
        }

        .audio {
          width: 260px;
          height: 100px;
          border: 1px solid rgba(33, 44, 55, .3);
          border-radius: 5px;
          background: #fff;
          display: flex;
          padding: 8px 0;
          margin: 10px;
          position: relative;

          .icon {
            font-size: 50px;
            color: #00a65a;
            line-height: 84px;
            padding-left: 8px;
          }

          .information {
            padding-left: 10px;
            width: 190px;

            .audio-title {
              color: #353535;
              font-size: 14px;
              margin-bottom: 6px;
              overflow: hidden;
              text-overflow: ellipsis;
              white-space: nowrap;
            }

            .audio-time {
              color: #8c8c8c;
              font-size: 12px;
              margin-bottom: 10px;

            }
          }
        }

        .video {
          width: 260px;
          height: 200px;
          margin: 10px;
          border-radius: 5px;
          position: relative;
          background: #fff;
          position: relative;

          .video-item {
            width: 260px;
            height: 200px;
            border-radius: 5px;

            .video-image {
              width: 260px;
              height: 200px;
              border-radius: 5px;
            }
          }

          .video-icon {
            position: absolute;
            top: 50%;
            left: 50%;
            margin: -25px 0 0 -21px;

            .icon {
              font-size: 50px;
              color: #ccc;
            }
          }

          .video-title {
            width: 100%;
            height: 25px;
            background: rgba(0, 0, 0, .4);
            position: absolute;
            bottom: -10px;
            line-height: 25px;
            text-align: center;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            font-size: 15px;
            color: #fff;
          }
        }
      }
    }
  }

  .mobile_preview {
    background: rgba(0, 0, 0, .4);
    width: 70%;
    height: 90%;
    position: fixed;
    top: 80px;
    z-index: 3;
    display: none;

    .mobile_preview_closed {
      position: absolute;
      bottom: 15%;
      left: 50%;
      margin-left: -38px;
    }

    .mobile_preview-item {
      width: 330px;
      height: 670px;
      background: #fff;
      margin: 0 auto;
      background: url(/static/admin/images/wechat/bg_mobile.png);
      position: relative;

      .mobile_preview_ft {
        width: 225px;
        height: 38px;
        position: absolute;
        bottom: 89px;
        right: 41px;

        //display: none;
        .pre_menu_list {
          width: 225px;
          display: flex;
          background: #fff;
          margin-left: auto;
          height: 100%;

          .pre_menu_item {
            width: 33%;
            flex: 1;
            text-align: center;
            position: relative;
            border-left: 1px solid #ccc;

            .pre_menu_link {
              line-height: 40px;
              color: #616161;
              font-size: 14px;
            }

            .sub_pre_menu_box {
              width: 100%;
              background: #fff;
              position: absolute;
              bottom: 55px;
              display: none;
              border: 1px solid #ccc;

              .sub_pre_menu_box_item {
                height: 30px;
                line-height: 30px;
                padding: 0 5px;
                font-size: 14px;
                color: #616161;
              }

              .arrow {
                width: 0;
                height: 0;
                border-left: 8px solid transparent;
                border-right: 8px solid transparent;
                border-top: 8px solid #ffffff;
                position: absolute;
                left: 50%;
                margin-left: -8px;
                z-index: 2;
              }
            }

            .sub_pre_menu_box_show {
              display: block !important;
            }

            .popout {
              display: block;
            }
          }
        }
      }
    }
  }

  .preview {
    display: block;
  }
}

#material-model {
  .empty {
    text-align: center;
    line-height: 400px;
    color: #00acd6;
  }

  .modal-body {
    min-height: 500px;

    .material-body {
      height: 400px;
      max-height: 400px;
      overflow-y: auto;
      padding-right: 10px;

      .material-item {
        padding: 5px;
        cursor: pointer;
        box-sizing: border-box;
        overflow: hidden;

        .boder-default {
          border-radius: 4px;
          background-color: #f8f8f8;
          box-shadow: 1px 1px 6px #c4c4c4;
          border: 2px solid aliceblue;
        }

        //图文
        .news-box {
          padding: 2px;
          height: 240px;

          img {
            width: 100%;
            border-radius: 4px;
          }

          .news-text {
            overflow: hidden;
            padding: 4px;

            h4 {
              display: -webkit-box;
              -webkit-box-orient: vertical;
              -webkit-line-clamp: 2;
              overflow: hidden;
              text-indent: 28px;
            }

            p {
              display: -webkit-box;
              -webkit-box-orient: vertical;
              -webkit-line-clamp: 3;
              overflow: hidden;
            }
          }
        }

        //图片
        .image-box {
          margin: 5px;

          img {
            width: 100%;
            height: 200px;
            object-fit: contain;
          }
        }

        //语音
        .voice-box {
          margin: 5px;
          height: 100px;
          overflow: hidden;
          display: flex;
          align-items: center;

          .icon {
            i {
              font-size: 34px;
            }
          }

          .voice-name {
            span {
              display: -webkit-box;
              -webkit-box-orient: vertical;
              -webkit-line-clamp: 3;
              overflow: hidden;
            }
          }
        }

      }

      //视频
      .video-box {
        padding: 2px;
        height: 240px;

        img {
          width: 100%;
          border-radius: 4px;
        }

        .video-text {
          overflow: hidden;
          padding: 4px;

          h4 {
            display: -webkit-box;
            -webkit-box-orient: vertical;
            -webkit-line-clamp: 2;
            overflow: hidden;
            text-indent: 28px;
          }

          p {
            display: -webkit-box;
            -webkit-box-orient: vertical;
            -webkit-line-clamp: 3;
            overflow: hidden;
          }
        }
      }

      .checked {
        border: 2px solid #00acd6 !important;
        box-sizing: border-box;
      }
    }
  }

}

.edit-auto-reply {
  .choose-material {
    margin: 10px 0 10px 0;
  }
}

#material-image {
  padding-top: 20px;

  img {
    width: 200px;
    border: 2px solid #dee5e7;
  }
}

#material-news {
  padding-top: 20px;

  .news {
    width: 200px;
    border: 2px solid #dee5e7;
    padding: 4px;

    .news-text {
      p {
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 3;
        overflow: hidden;
      }
    }
  }

}

#material-video {
  padding-top: 20px;

  .video {
    width: 200px;
    border: 2px solid #dee5e7;
    padding: 4px;

    .news-text {
      p {
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 3;
        overflow: hidden;
      }
    }
  }

}

#material-voice {
  padding-top: 20px;

  .voice {
    height: 60px;
    border: 1px solid #dee5e7;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: space-around;

    .icon {
      i {
        font-size: 34px;
      }
    }

    .voice-name {
      span {
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 3;
        overflow: hidden;
      }
    }
  }
}